package net.joke.base.systems;

import net.joke.base.components.Position;

import com.artemis.ComponentMapper;
import com.artemis.Entity;
import com.artemis.EntityProcessingSystem;

/**
 * Tutto da pensare, anche se ha senso di esistere.
 * Non usare per ora
 * @author Gianluca
 *
 */
public class AreaCollisionSystem extends EntityProcessingSystem {

	public static Entity [][] areas; 
	
	public int pixelsX;
	public int pixelsY;
	
	public AreaCollisionSystem(int everyX, int everyY, int sizeX, int sizeY) {
		super(Position.class);
		this.pixelsX = everyX;
		this.pixelsY = everyY;
		// TODO Auto-generated constructor stub
		int qX = sizeX / pixelsX;
		int qY = sizeY / pixelsY;
		areas = new Entity[qX][qY];
	}

	private ComponentMapper<Position> positionMapper;

	@Override
	protected void initialize() {
		super.initialize();
		positionMapper = new ComponentMapper<Position>(Position.class, world);
	}
	
	@Override
	protected void process(Entity e) {
		// TODO Auto-generated method stub
		
	}

}
